variable=$(cat /home/pi/count_motion)
#echo $variable
b=200
DATE=$(date)

new=$(($variable + 1))

echo $new > /home/pi/count_motion
 
if [ "$variable" -gt "$b" ]; then
#     echo  "greater then"
      echo 0 > /home/pi/count_motion
fi




